package com.education.wisdom.service.impl;

import com.education.wisdom.mapper.JrAnswTwoMapper;
import com.education.wisdom.pojo.JrAnswTwo;
import com.education.wisdom.service.JrAnswTwoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * 每道题的答案列表 服务层实现
 *
 * @author d
 * @date 2020-12-02 11:44:38
 */
@Service
public class JrAnswTwoServiceImpl implements JrAnswTwoService {

    @Autowired
    private JrAnswTwoMapper jrAnswTwoMapper;

    //查询每道题的答案列表信息
    @Override
    public JrAnswTwo selectJrAnswTwoById(Integer id) {
        return jrAnswTwoMapper.selectJrAnswTwoById(id);
    }

    // 查询每道题的答案列表列表
    @Override
    public List<JrAnswTwo> selectJrAnswTwoList(JrAnswTwo jrAnswTwo) {
        return jrAnswTwoMapper.selectJrAnswTwoList(jrAnswTwo);
    }

    // 新增每道题的答案列表
    @Override
    public int insertJrAnswTwo(JrAnswTwo jrAnswTwo) {
        return jrAnswTwoMapper.insertJrAnswTwo(jrAnswTwo);
    }

    //修改每道题的答案列表
    @Override
    public int updateJrAnswTwo(JrAnswTwo jrAnswTwo) {
        return jrAnswTwoMapper.updateJrAnswTwo(jrAnswTwo);
    }

    //删除每道题的答案列表对象
    @Override
    public int deleteJrAnswTwoByIds(String[] ids) {
        return jrAnswTwoMapper.deleteJrAnswTwoByIds(ids);
    }

    @Override
    public List<JrAnswTwo> selectAnswIds(String[] split) {
        return jrAnswTwoMapper.selectAnswIds(split);
    }
}